<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Adds an element to the queue.</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="splqueue.dequeue.html">SplQueue::dequeue</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="splqueue.setiteratormode.html">SplQueue::setIteratorMode</a></div>
 <div class="up"><a href="class.splqueue.html">SplQueue</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="splqueue.enqueue" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SplQueue::enqueue</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0)</p><p class="refpurpose"><span class="refname">SplQueue::enqueue</span> &mdash; <span class="dc-title">Adds an element to the queue.</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-splqueue.enqueue-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>SplQueue::enqueue</strong></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>
   )</div>


  <p class="para rdfs-comment">
   Enqueues <em><code class="parameter">value</code></em> at the end of the queue.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    <span class="methodname"><strong>SplQueue::enqueue()</strong></span> is an alias of <span class="methodname"><a href="spldoublylinkedlist.push.html" class="methodname">SplDoublyLinkedList::push()</a></span>.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-splqueue.enqueue-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">value</code></em></dt>

     <dd>

      <p class="para">
       The value to enqueue.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-splqueue.enqueue-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="splqueue.dequeue.html">SplQueue::dequeue</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="splqueue.setiteratormode.html">SplQueue::setIteratorMode</a></div>
 <div class="up"><a href="class.splqueue.html">SplQueue</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
